package com.summer.data.logging;

/**
 * @author 345480567@qq.com
 */
public class LoggerFactory {

    public static class ClassLogger extends Logger {

        Class clazz;

        ClassLogger(Class clazz) {
            this.clazz = clazz;
        }

        public void info(String format, Object... objects) {
            System.out.println(String.format(format, objects));
        }

        public void warn(String format, Object... objects) {
            System.out.println(String.format(format, objects));
        }
    }

    public static Logger getLogger(Class clazz) {
        return new ClassLogger(clazz);
    }
}
